<script type="text/html" data-template-name="opcda-write">
    <div class="form-row">
        <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
        <input type="text" id="node-input-name" placeholder="Name">
    </div>
	<div class="form-row">
        <label for="node-input-server"><i class="fa fa-server"></i> Server</label>
        <input id="node-input-server" placeholder="Select OPC DA Server">
    </div>
</script>

<script type="text/html" data-help-name="opcda-write">
    <p>Opcda Write Node. For more details please visit https://github.com/emrebekar/node-red-contrib-opcda-client</p>
</script>

<script type="text/javascript">
    RED.nodes.registerType('opcda-write',{
        category: 'opcda',
        color: '#a6bbcf',
        defaults: {
			server: {value: "", type: "opcda-server", required: true},
            name: {value: ""},
        },
        inputs:1,
        outputs:1,
        icon: "serial.png",
		align: 'right',
        label: function() {
            return this.name||this._("opcda-write");
        }
    });
</script>
